package com;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.DBManipulation;

/**
 * Servlet implementation class BankDateReportServlet
 */
public class BankDateReportServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public BankDateReportServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		
		try
		{
			String receiptsbankdate[]=request.getParameterValues("rbankdate");
			
			String a="";
			
			for(int i=0;i<receiptsbankdate.length;i++)
			{
				a=receiptsbankdate[i];
				System.out.println(a);
			}
			
		//	DBManipulation dbc= new DBManipulation();
		//	dbc.updateReceiptsBankDate(receiptsbankdate[]);
		}
		catch(Exception e)
		{
			
		}
		
		try
		{
			String paymentbankdate[]=request.getParameterValues("pbankdate");
			
			for(int i=0;i<paymentbankdate.length;i++)
			{
				
			System.out.println(paymentbankdate);
			}
			
			
		//	DBManipulation dbc= new DBManipulation();
	//		dbc.updatePaymentBankDate(paymentbankdate[]);
		}
		catch(Exception e)
		{
			
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
